using System;
using UnityEngine;
namespace NL.Advanced
{
    public interface IBlockWaiter
    {
        string BlockName { get; }

        void WaitBlock(Action on);
    }
    public class BlockWaiter : MonoBehaviour, IBlockWaiter
    {

        string IBlockWaiter.BlockName => BlockName;

        public string BlockName;

        public void WaitBlock(Action on)
        {
            Blocker.GET("BlockName").WaitOrExcute(on);
        }
    }
}

